<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <script type="text/javascript" language="javascript" src="<?php echo(base_url('jquery.js')); ?>"></script>
        <meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport' />


        <meta name="viewport" content="width=device-width" />
        <link rel="stylesheet" type="text/css" href="<?php echo(base_url('css/default.css')); ?>" />

        <!--    Add to Home screen    -->
        <link rel="stylesheet" href="<?php echo(base_url('css/add2home.css')); ?>" />
        <script type="text/javascript">
            var addToHomeConfig = {
                touchIcon:true
            };
        </script>
        <script type="application/javascript" src="<?php echo(base_url('add2home.js')); ?>"></script>

        <!--   BsApp icon     -->
        <link rel="apple-touch-icon-precomposed" href="<?php echo(base_url('images/iphone-icon.png')); ?>"/>        

        <!--    satus bar color black    -->
        <meta name="apple-mobile-web-app-status-bar-style" content="black" /> 
        <style>
            h1 {
                color:#9dac1b;
                font-size: 1.0em;
                padding-top:1em;
                font-weight: normal;
                padding-bottom:1em;
            }       
        </style>
        <title>begrotingsscan</title>
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div id="header-logo"><div id="innergo"></div></div>
                <div id="draadmodel"></div>

                <div id="menu">
                    <?php
                    $this->load->view('include/menu');
                    ?>
                </div>
            </div>
            <div id="content">    
                <?php
                if ($this->session->userdata('user') !== FALSE) {
                    if ($this->session->userdata('gemeente') !== FALSE) {
                        if ($this->session->userdata('gemeente1') !== FALSE) {

                            $this->load->view('include/rapport');
                            ?>
                            <br />
                            <br />
                            <?php
                            //popups voor de grafiek
                            if ($page == 'board') {
                                $this->load->view('include/board');
                            } else if ($page == 'income') {
                                $this->load->view('include/income');
                            } else if ($page == 'services') {
                                $this->load->view('include/services');
                            } else if ($page == 'buildings') {
                                $this->load->view('include/buildings');
                            } else if ($page == 'publicspace') {
                                $this->load->view('include/publicspace');

                                //popups voor functieoverzicht
                            } else if ($page == 'functionboard') {
                                $this->load->view('include/functionboard');
                            } else if ($page == 'functionculture') {
                                $this->load->view('include/functionculture');
                            } else if ($page == 'functioneconomy') {
                                $this->load->view('include/functioneconomy');
                            } else if ($page == 'functioneducation') {
                                $this->load->view('include/functioneducation');
                            } else if ($page == 'functionfinancialafter') {
                                $this->load->view('include/functionfinancialafter');
                            } else if ($page == 'functionfinancialbefore') {
                                $this->load->view('include/functionfinancialbefore');
                            } else if ($page == 'functionhealth') {
                                $this->load->view('include/functionhealth');
                            } else if ($page == 'functionhousing') {
                                $this->load->view('include/functionhousing');
                            } else if ($page == 'functionsafety') {
                                $this->load->view('include/functionsafety');
                            } else if ($page == 'functionservices') {
                                $this->load->view('include/functionservices');
                            } else if ($page == 'functiontrafic') {
                                $this->load->view('include/functiontrafic');
                            }
                            ?>

                            <?php
                        } else {
                            echo('<span style="color:red; margin-left:1.6%; margin-right:1.6%;">maak een selectie in stap 2.</span>');
                        }
                    } else {
                        echo('<span style="color:red; margin-left:1.6%; margin-right:1.6%;">kies een eigen gemeente.</span>');
                    }
                } else {
                    echo('<span style="color:red; margin-left:1.6%; margin-right:1.6%;">u moet eerst inloggen</span>');
                }
                ?>

            </div>

            <div id="footer"><div id="footer-text">©2012 begrotingsscan</div>
                <?php
                if ($this->session->userdata('user') == FALSE) {
                    ?>

                    <a  class="footer-link" href="http://begrotingsscan.nl/account-aanvragen.html" target="_blank"><button class="registerbutton"></button></a>

                    <?php
                } else {
                    ?>
                    <a  class="footer-link" href="<?php echo(base_url("handleiding")); ?>" ><button class="helpbutton"></button></a>
                    <?php
                }
                ?>
            </div>
    </body>
</html>